<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Insert title here</title>
        <script>
			some1();
			some2();

			var some1 = function() {
			     console.log("some1 called");
			};
			// 선언적 함수는 파싱하면서 reference까지 완료
			function some2(a, b) {
                console.log("some2 called");
            }
            
            some1();
            some2();
        </script>
        <script>
            // some2 called, not a function
            function some1() {
                console.log("some2 called");
            }
            
            some1();
            var some1 = 4;
            
            some1();
        </script>
    </head>
    <body>

    </body>
</html>